import request from "../index";
import { version } from "@/config";

// 获取所有酒店位置 
export function hotelPositions() {
  return request({
    url: `/ssop/api/cms-v${version}/scenicArea/getScenicAreaSelectList`,
    method: "get",
  })
}

// 酒店商品详情
export function hotelDetail({goodsId, startDate, endDate}) {
  return request({
    url: `/ssop/api/goods-v${version}/applet/goods/detail?goodsId=${goodsId}&startDate=${startDate}&endDate=${endDate}`,
    method: "get",
  })
}

// 酒店房型详情
export function hotelRoomDetail(id, extendId) {
  return request({
    url: `/ssop/api/goods-v${version}/applet/goods/detail/room?goodsExtendId=${extendId}&id=${id}`,
    method: "get",
  })
}
